import Vue from 'vue';
import Vuex from 'vuex';
import user from '@/store/user.js';
import data from '@/store/data.js';
import oceanFeature from '@/store/oceanFeature.js';
import mapState from '@/store/mapState.js';
import createPersistedState from 'vuex-persistedstate'
const TIMELIST_PATHS = ['data.OFeatureList']
Vue.use(Vuex);


export default new Vuex.Store({
    modules: {
        user,
        data,
        oceanFeature,
        mapState
    },
    plugins: [createPersistedState({
        paths: TIMELIST_PATHS
    })]
})